home *** CD-ROM | disk | FTP | other *** search
/ Aminet 22 / Aminet 22 (1997)(GTI - Schatztruhe)[!][Dec 1997].iso / Aminet / dev / misc / gms_e.lha / GMSDev / EModules / gms / dpkernel.e next >
Text File  |  1997-09-15  |  3KB  |  91 lines

  1. /*
  2. **  $VER: dpkernel.e V0.8B
  3. **
  4. **  General include file for programs using the DPKernel.
  5. **
  6. **  (C) Copyright 1996-1997 DreamWorld Productions.
  7. **      All Rights Reserved
  8. */
  9.  
  10. OPT MODULE
  11. OPT EXPORT
  12. OPT PREPROCESS
  13.  
  14. MODULE 'system/register'
  15.  
  16. CONST DPKVersion  = 0,
  17.       DPKRevision = 8
  18.  
  19. CONST SKIPENTRY  = 0,
  20.       ENDLIST    = -1,
  21.       LISTEND    = -1,
  22.       TAGEND     = 0
  23.  
  24. CONST TAGS       = $54410001,
  25.       STARTLIST  = $4C490001,
  26.       LISTSTART  = $4C490001,
  27.       OBJECTLIST = $4F4C0001
  28.  
  29. CONST TAG_IGNORE = 1,
  30.       TAG_MORE   = 2,
  31.       TAG_SKIP   = 3
  32.  
  33. CONST TAPTR = $C0000000,
  34.       TLONG = $80000000,
  35.       TWORD = $40000000
  36.  
  37. ->**************************************************************************
  38.  
  39. OBJECT head
  40.   id        :INT
  41.   version   :INT
  42.   sysobject :LONG
  43.   stats     :LONG
  44. ENDOBJECT
  45.  
  46. ->**************************************************************************
  47. ->* Universal errorcodes returned by certain functions.
  48.  
  49. ENUM  ERR_OK,          -> Function went OK.
  50.       ERR_NOMEM,       -> Not enough memory available 
  51.       ERR_NOPTR,       -> Required pointer not present 
  52.       ERR_INUSE,       -> Previous allocations have not been freed 
  53.       ERR_STRUCT,      -> Structure version not supported or not found. 
  54.       ERR_FAILED,      -> General failure 
  55.       ERR_FILE,        -> File error, eg file not found.
  56.       ERR_DATA,        -> There is an error in the given data.
  57.       ERR_SEARCH,      -> A search routine failed to make a match.
  58.       ERR_SCRTYPE,     -> Screen Type not recognised.
  59.       ERR_MODULE,      -> Trouble with initialising/using a module.
  60.       ERR_RASTCOMMAND, -> Invalid raster command detected.
  61.       ERR_RASTERLIST,  -> Complete rasterlist failure.
  62.       ERR_NORASTER,    -> Rasterlist missing from Screen->RasterList.
  63.       ERR_DISKFULL,    -> Disk full error.
  64.       ERR_FILEMISSING, -> File not found.
  65.       ERR_WRONGVER,    -> Wrong version or version not supported.
  66.       ERR_MONITOR,     -> Monitor driver not found or cannot be used.
  67.       ERR_UNPACK,      -> Problem with unpacking of data.
  68.       ERR_ARGS,        -> Invalid arguments passed to function.
  69.       ERR_NODATA,      -> No data is available for use.
  70.       ERR_READ,        -> Error reading data from file.
  71.       ERR_WRITE,       -> Error writing data to file.
  72.       ERR_LOCK         -> Could not obtain lock on object.
  73.  
  74. CONST ERR_SUCCESS = 0  -> Synonym for ERR_OK.
  75.  
  76. ->**************************************************************************
  77. ->* Memory types used by AllocMemBlock().  This is almost identical to the
  78. ->* exec definition but CHIP is renamed to VIDEO (displayable memory) and
  79. ->* there is an addition of BLIT and SOUND specific memory.  CLEARed memory
  80. ->* is redundant (all GMS memory is cleared on allocation), REVERSE and
  81. ->* NO_EXPUNGE are also unused.
  82.  
  83. CONST MEM_DATA      = $00000000,
  84.       MEM_PRIVATE   = $00000001,
  85.       MEM_VIDEO     = $00000002,
  86.       MEM_BLIT      = $00000004,
  87.       MEM_SOUND     = $00000008,
  88.       MEM_CODE      = $00000010,
  89.       MEM_UNTRACKED = $80000000
  90.  
  91.